# /usr/bin/env python3.6
# -*- encoding: utf-8 -*-
"""
@File    : cinma_hall_movie_model.py
@Time    : 2020/2/8 0008 13:26
@Author  : zhangbing
@Email   : 18829172841@163.com
@Software: PyCharm
"""
from App.ext import db
from App.models import BaseModel
from App.models.cinema_admin.cinema_hall_model import Hall
from App.models.common.movie_model import Movie

'''
排挡相关配置
'''


class HallMovie(BaseModel):
    h_movie_id = db.Column(db.Integer, db.ForeignKey(Movie.id))
    h_hall_id = db.Column(db.Integer, db.ForeignKey(Hall.id))
    h_time = db.Column(db.DateTime)
    h_orders = db.relationship('MovieOrder', backref='HallMovie', lazy=True)


if __name__ == "__main__":
    pass
